/**
 * 数据服务接口
 */

import axios from "axios";

// var root = "http://localhost:8082";
var root = "http://nz_api.xw025.com";

/**
 * 根据ID，获取广告信息
 * @param id
 * @param callback
 */

const getAd = (id, callback) => {
  var url = root + "/index.php/Api/GetAd";

  let data = new FormData();
  data.append("AdGroupID", id);

  axios.post(url, data).then((res) => {
    callback(res.data);
  });
};



export { getAd };
